package com.example.guide.rest;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;


@RestController
public class HelloController {

    @RequestMapping("/api/getValue")
    public Map getValue(){
        Map data = new HashMap();
        data.put("id", 1L);
        data.put("quate", "This is api.value");
        return data;
    }

    @RequestMapping("/")
    public String getValue1(){
        return "Hello World";
    }
}
